package org.jeecg.modules.service.print.impl;

import org.jeecg.modules.bean.entity.print.TbPrintChargeRecord;
import org.jeecg.modules.bean.vo.print.ChargeCountsVo;
import org.jeecg.modules.bean.vo.print.PrintChargeRecordVo;
import org.jeecg.modules.mapper.print.TbPrintChargeRecordMapper;
import org.jeecg.modules.service.print.ITbPrintChargeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 打印收费记录表
 * @Author: jeecg-boot
 * @Date:   2023-10-19
 * @Version: V1.0
 */
@Service
public class TbPrintChargeRecordServiceImpl extends ServiceImpl<TbPrintChargeRecordMapper, TbPrintChargeRecord> implements ITbPrintChargeRecordService {

    @Autowired
    private TbPrintChargeRecordMapper tbPrintChargeRecordMapper;

    /**
     * @Description 收费统计
     * @Date 2023/11/27
     * @param dateType 1年 2月 3日
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @return org.jeecg.modules.bean.vo.print.PrintChargeRecordVo
     **/
    @Override
    public PrintChargeRecordVo queryByDateType(Integer dateType, String startTime, String endTime) {
        return tbPrintChargeRecordMapper.queryByDateType(dateType, startTime, endTime);
    }

    @Override
    public List<PrintChargeRecordVo> queryFeeCounts(String startTime, String endTime, TbPrintChargeRecord chargeRecord,String[] operatorIDS) {
        return tbPrintChargeRecordMapper.queryFeeCountsByItems(startTime,endTime,chargeRecord,operatorIDS);
    }

    @Override
    public ChargeCountsVo queryCounts(String startTime, String endTime, TbPrintChargeRecord chargeRecord,String... operatorIDS) {
        return tbPrintChargeRecordMapper.queryTotalMoney(startTime,endTime,chargeRecord,operatorIDS);
    }
}
